# -*- coding: UTF-8 -*-
# filename: yangsy.py
# author by: Face
f = open('students.csv','r')
f1 = f.read()
l1 = f1.split('\n')
l2 = l1[1:]

total_age = 0.0
index = 0
total_weight = 0.0
list = []

for line in l2:
    line2 = line.split(',')
    length = len(line2)
    if length >3:
        index += 1
        age = int(line2[2])
        total_age += age
        total_weight +=int(line2[3])
        if age >10:
            list.append(line2[0])
print('年龄大于10的孩子姓名：',list)
print('平均年龄为：','%.2f'%(total_age/index))
print('平均体重为：','%.2f'%(total_weight/index))